<?php if(!defined('SABLOG_ROOT')) exit('Access Denied');?>
{template header}

	<div id="page">
		<div id="wrap">
			<script type="text/javascript" src="$options[url]include/jscript/ajax.js"></script>
			<script type="text/javascript" src="$options[url]include/jscript/show.js"></script>
			<script type="text/javascript" src="$options[url]include/jscript/fiximage.js"></script>
			<script type="text/javascript">
			window.onload=function(){
				fiximage('$options[attachments_thumbs_size]');
			}
			</script>
			<div id="news" class="box">
				<h1>最新活动</h1>
				<div class="rd">
					<ul>
                    <!--{if $total}-->
                    	<!--{loop $articledb $article}-->
						<li>
                        	[{$article[dateline]}]&nbsp;<a href="$article[url]" <!--{if $article['stick']}-->class="red" <!--{/if}-->>$article[title]</a>
                        </li>
                            <li class="hiddencontent box">
                            	<h1 class="post-title"><a href="$article[url]">$article[title]</a><span>&times;关闭</span></h1>
                                <div class="rd">
                         	       <p class="post-date">Written by <a href="$article[userurl]">$article[username]</a> on $article[dateline]</p>
                            	    <!--{if !$article['allowread']}-->
										<div class="needpwd">
											<form action="$article[url]" method="post">
											这篇日志被加密了，请输入密码后查看。<br />
											<input class="formfield" type="password" name="readpassword" style="margin-right:5px;" />
											<button type="submit">提交</button>
											</form>
										</div>
									<!--{else}-->
										<div class="post-body"><p>$article[content]</p>
											<p>&raquo; <a href="$article[url]">阅读全文</a></p>
										</div>

										<!--{if $article['image']}-->
											<!--{loop $article['image'] $image}-->
												<!--{if $image[6]}-->
													<p class="attach">图片附件(缩略图):<br /><a href="$options[url]attachment.php?id=$image[0]" target="_blank"><img src="{$options[url]}{$image[1]}" border="0" alt="$image[7]&#13;&#13;大小: $image[2]&#13;尺寸: $image[3] x $image[4]&#13;浏览: $image[5] 次&#13;点击打开新窗口浏览全图" width="$image[3]" height="$image[4]" /></a></p>
												<!--{else}-->
													<p class="attach">图片附件:<br /><a href="$options[url]attachment.php?id=$image[0]" target="_blank"><img src="{$options[url]}{$image[1]}" border="0" alt="$image[7]&#13;&#13;大小: $image[2]&#13;尺寸: $image[3] x $image[4]&#13;浏览: $image[5] 次&#13;点击打开新窗口浏览全图" width="$image[3]" height="$image[4]" /></a></p>
												<!--{/if}-->
											<!--{/loop}-->
										<!--{/if}-->

										<!--{if $article['file']}-->
											<!--{loop $article['file'] $file}-->
												<p class="attach">附件:<a title="$file[1]" href="$options[url]attachment.php?id=$file[0]" target="_blank">$file[1]</a> ($file[2], 下载次数:$file[3])</p>
											<!--{/loop}-->
										<!--{/if}-->

										<p class="post-meta">
											<span class="cat-links">Filed under: <a href="$article[cateurl]">$article[cname]</a></span>
											<span class="post-meta-link"><a href="$article[url]#comment">$article[comments] Comments</a></span>
											<span class="post-meta-link"><a href="$article[url]">$article[views] Views</a></span>
										</p>
									<!--{/if}-->
								</div>
                            </li>
						<!--{/loop}-->
					<!--{else}-->
						<p>没有任何文章</p>
					<!--{/if}-->
					</ul>
					<div id="activeproject"><img src="$options[url]templates/$options[templatename]/img/activeproject.jpg" width="136" height="181" alt="案例分析大赛" /></div>
				</div>
			</div>

			<div id="ads" class="box">
				<h1>$stylevar[adstitle]</h1>
				<div class="rd">
					$stylevar[ads]
				</div>
			</div>
            
            <!--{if $options['sidebarlink_num']}-->
				<div id="f-links" class="box">
					<h1>友情链接</h1>
					<div class="rd">
						<ul>
                        	<!--{loop $linkcache $data}-->
							<li><a href="$data[url]" target="_blank" title="$data[note]">$data[name]</a></li>
							<!--{/loop}-->
						</ul>
					</div>
				</div>
            <!--{/if}-->
		</div>
        
		<div id="sidebar">

			{template sidecomm}

		</div>
	</div>